lcImageGetPalColor Home

Retrieves palette color. The image must have palette colors (LC_PROP_IMAGE_RGB = false).

 BOOL lcImageGetPalColor (
   HANDLE hImage,
   int iColor,
   int* pRed,
   int* pGreen,
   int* pBlue
 );

Parameters
hImage
  Handle to a raster image object.
iColor
  Index of palette color.
pRed pGreen pBlue
  Pointer to a variable which will receive a value of color component.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcImageSetPalColor